<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:65:"C:\wamp\www\tp5\public/../application/admin\view\index\index.html";i:1536749329;}*/ ?>
<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="utf-8"/>
    <title>控制台 - Bootstrap后台管理系统模版Ace下载</title>
    <meta name="keywords" content="Bootstrap模版,Bootstrap模版下载,Bootstrap教程,Bootstrap中文"/>
    <meta name="description" content="站长素材提供Bootstrap模版,Bootstrap教程,Bootstrap中文翻译等相关Bootstrap插件下载"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <!-- basic styles -->
    <link href="/static/admin/css/bootstrap.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/static/admin/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/static/admin/css/toastr.css"/>
    <!--[if IE 7]>
    <link rel="stylesheet" href="/static/admin/css/font-awesome-ie7.min.css"/>
    <![endif]-->
    
    <link rel="stylesheet" href="/static/admin/css/ace.min.css"/>
    
    <!-- page specific plugin styles -->

    <!-- fonts -->

    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300"/>
    <!-- 天气 -->
    <!--<link rel="stylesheet" type="text/css" href="/static/admin/css/normalize.css" />-->
    <!--<link rel="stylesheet" type="text/css" href="/static/admin/css/default.css">-->
    <!--<link rel="stylesheet" type="text/css" href="/static/admin/css/styles.css">-->

    <!-- ace styles -->
    <link rel="stylesheet" href="/static/admin/css/ace-rtl.min.css"/>
    <link rel="stylesheet" href="/static/admin/css/ace-skins.min.css"/>

    <!--[if lte IE 8]>
    <link rel="stylesheet" href="/static/admin/css/ace-ie.min.css"/>
    <![endif]--

    <!-- inline styles related to this page -->

    <!-- ace settings handler -->

    <script src="/static/admin/js/ace-extra.min.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

    <!--[if lt IE 9]>
    <script src="/static/admin/js/html5shiv.js"></script>
    <script src="/static/admin/js/respond.min.js"></script>
    <![endif]-->

    <!-- 天气 -->
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <!-- //For-Mobile-Apps -->
    <!-- Style -->
    <link rel="stylesheet" href="/static/admin/css/style1.css" type="text/css" media="all" />
    <!-- Style -->
    <!-- JavaScript -->
    <script type="text/javascript" src="/static/admin/js/jquery.min.js"></script>
    <!-- end 天气 -->
</head>
<script>
//function startTime() {
//    var today = new Date();
//    var h = today.getHours();
//    var m = today.getMinutes();
//    var s = today.getSeconds();
//    m = checkTime(m);
//    s = checkTime(s);
//    document.getElementById('txt').innerHTML =
//    h + ":" + m + ":" + s;
//    var t = setTimeout(startTime, 500);
//}
//function checkTime(i) {
//    if (i < 10) {i = "0" + i};  // add zero in front of numbers < 10
//    return i;
//}
</script>


<body >

<div class="navbar navbar-default" id="navbar">
    <script type="text/javascript">
        try {
            ace.settings.check('navbar', 'fixed')
        } catch (e) {
        }
    </script>

    <div class="navbar-container" id="navbar-container">
        <div class="navbar-header pull-left">
            <a href="#" class="navbar-brand">
                <small>
                    <i class="icon-leaf"></i>
                    ACE后台管理系统
                </small>
            </a><!-- /.brand -->
        </div><!-- /.navbar-header -->

        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">


                <li class="green">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <i class="icon-envelope icon-animated-vertical"></i>
                        <span class="badge badge-success">
                            <?php if (isset($picnum)): ?>
                                <?php echo $picnum; else: endif ?>
                        </span>
                    </a>

                    <ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
<!--                         <li class="dropdown-header">
                            <i class="icon-envelope-alt"></i>
                              张未审核的图片
                        </li> -->

                        <li>
                            <a href="#">
                                <img src="/static/admin/avatars/user.jpg" class="msg-photo" alt="Alex's Avatar"/>
                                <span class="msg-body">
                                            <span class="msg-title">
                                                <span class="blue" style='font-size: 18px;'> 
                                                    <?php if (isset($picnum)): ?>
                                                    还有未审核的图片
                                                    <?php else: ?>
                                                        暂无消息
                                                    <?php endif ?>
    
                                                </span>
                                                
                                            </span>

                                        <!--     <span class="msg-time">
                                                <i class="icon-time"></i>
                                                <span>1分钟以前</span>
                                            </span> -->
                                        </span>
                            </a>
                        </li>


                        <li>
                            <a href="/uncheck">
                                <?php if (isset($picnum)): ?>
                                        去处理
                                    <?php else: ?>
                                        去添加一点吧
                                    <?php endif ?>
                                <i class="icon-arrow-right"></i>
                            </a>
                        </li>
                    </ul>
                </li>

                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" src="/static/admin/avatars/user.jpg" alt="Jason's Photo"/>
                        <span class="user-info">
                                    <small>欢迎光临,</small>
                                    <?php echo session('admin')['name'] ?>
                                </span>

                        <i class="icon-caret-down"></i>
                    </a>

                    <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
 

                        <li>
                            <a href="/logout">
                                <i class="icon-off"></i>
                                退出
                            </a>
                        </li>
                    </ul>
                </li>
            </ul><!-- /.ace-nav -->
        </div><!-- /.navbar-header -->
    </div><!-- /.container -->
</div>

<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <div class="main-container-inner">
        <a class="menu-toggler" id="menu-toggler" href="#">
            <span class="menu-text"></span>
        </a>

        <div class="sidebar" id="sidebar">
            <script type="text/javascript">
                try {
                    ace.settings.check('sidebar', 'fixed')
                } catch (e) {
                }
            </script>




            <!--控制台-->
            <ul class="nav nav-list">
                <li class="active">
                    <a href="<?php echo url('admin/index/index'); ?>">
                        <i class="icon-dashboard"></i>
                        <span class="menu-text"> 控制台 </span>

                    </a>
                </li>



                <!-- 后台RBAC -->
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="icon-group"></i>
                        <span class="menu-text"> 后台权限管理 </span>

                        <b class="arrow icon-angle-down"></b>
                    </a>

                    <ul class="submenu">
                        <li>
                            <a href="<?php echo url('admin/user/index'); ?>">
                                <i class="icon-double-angle-right"></i>
                                用户信息管理
                            </a>
                        </li>

                        <li>
                            <a href="<?php echo url('admin/role/index'); ?>">
                                <i class="icon-double-angle-right"></i>
                                用户权限管理
                            </a>
                        </li>

                        <li>
                            <a href="<?php echo url('admin/privilege/index'); ?>">
                                <i class="icon-double-angle-right"></i>
                                角色权限分配
                            </a>
                        </li>
                    </ul>
                </li>

                <!-- 图片管理 -->
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="icon-camera"></i>
                        <span class="menu-text"> 图片管理 </span>

                        <b class="arrow icon-angle-down"></b>
                    </a>

                    <ul class="submenu">
                        <li>
                            <a href="<?php echo url('admin/goods/index'); ?>">
                                <i class="icon-double-angle-right"></i>
                                已审核图片
                            </a>
                        </li>

                        <li>
                            <a href="<?php echo url('admin/goods/uncheck'); ?>">
                                <i class="icon-double-angle-right"></i>
                                未审核图片
                            </a>
                        </li>

                        <li>
                            <a href="<?php echo url('admin/goods/banner'); ?>">
                                <i class="icon-double-angle-right"></i>
                                轮播图管理
                            </a>
                        </li>

                    </ul>
                </li>



                <!-- 图片分类 -->
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class=" icon-picture"></i>
                        <span class="menu-text"> 图片分类管理 </span>

                        <b class="arrow icon-angle-down"></b>
                    </a>
                    <ul class="submenu">
                        <li>
                            <a href="<?php echo url('admin/category/index'); ?>">
                                <i class="icon-double-angle-right"></i>
                                图片分类管理
                            </a>
                        </li>

                        <li>
                            <a href="/addcate">
                                <i class="icon-double-angle-right"></i>
                                添加一级分类
                            </a>
                        </li>
                    </ul>
                </li>

                <!-- 用户 -->
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class=" icon-user"></i>
                        <span class="menu-text"> 用户管理 </span>
                        <b class="arrow icon-angle-down"></b>
                    </a>
                    <ul class="submenu">
                        <li>
                            <a href="<?php echo url('admin/member/index'); ?>">
                                <i class="icon-double-angle-right"></i>
                                用户列表
                            </a>
                        </li>
                    </ul>
                </li>
                
                <!-- 友链 -->
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class=" icon-globe"></i>
                        <span class="menu-text"> 友情链接 </span>
                        <b class="arrow icon-angle-down"></b>
                    </a>
                    <ul class="submenu">
                        <li>
                            <a href="<?php echo url('admin/Link/index'); ?>">
                                <i class="icon-double-angle-right"></i>
                                友链管理
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo url('admin/Link/create'); ?>">
                                <i class="icon-double-angle-right"></i>
                                添加友情链接
                            </a>
                        </li>
                    </ul>
                </li>

                <!-- 广告 -->
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="icon-glass"></i>
                        <span class="menu-text"> 广告管理 </span>
                        <b class="arrow icon-angle-down"></b>
                    </a>
                    <ul class="submenu">
                        <li>
                            <a href="<?php echo url('admin/Advertisement/index'); ?>">
                                <i class="icon-double-angle-right"></i>
                                广告列表
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo url('admin/Advertisement/create'); ?>">
                                <i class="icon-double-angle-right"></i>
                                添加广告
                            </a>
                        </li>
                    </ul>
                </li>
            </ul><!-- /.nav-list -->
        <!--end控制台-->


            <div class="sidebar-collapse" id="sidebar-collapse">
                <i class="icon-double-angle-left" data-icon1="icon-double-angle-left"
                   data-icon2="icon-double-angle-right"></i>
            </div>

            <script type="text/javascript">
                try {
                    ace.settings.check('sidebar', 'collapsed')
                } catch (e) {
                }
            </script>
        </div>


        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">
                    try {
                        ace.settings.check('breadcrumbs', 'fixed')
                    } catch (e) {
                    }
                </script>

                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home home-icon"></i>
                        <a href="/admin">首页</a>
                    </li>
                    <li class="active">控制台</li>
                </ul><!-- .breadcrumb -->
                <h1 style='color:black'>云图网后台管理系统</h1>

                <!-- 天气 -->
                <?php if (isset($data)): ?>


                <div class="content" style ='width:1216px; '>

                    <div class="place" style='height:500px;margin-left: 0px'>

                        <div id="txt"></div>

                        <div class="dmy">
                            <script type="text/javascript">
                                var mydate=new Date()
                                var year=mydate.getYear()
                                if(year<1000)
                                    year+=1900
                                var day=mydate.getDay()
                                var month=mydate.getMonth()
                                var daym=mydate.getDate()
                                if(daym<10)
                                    daym="0"+daym
                                var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
                                var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
                                document.write(""+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"")
                            </script>
                        </div>

                        <div class="city" style='margin-top: -23px;'>
                            <p>ShangHai</p>
                            <b style='color:white;margin-top:-10px'>穿衣指数：<?php echo $data['today']['dressing_index']; ?>,<?php echo $data['today']['dressing_advice']; ?></b>
                        </div>


                    </div>

                    <div class="temp">

                        <div id="dd1" class="wrapper-dropdown-3" tabindex="1">

                        </div>

                        <p><?php echo $data['today']['temperature']; ?></p>

                        <div class="day" style='margin-top: 50px'>

                            <!-- 今天的天气 -->
                            <?php switch($data['future'][0]['weather_id']['fa']): case "00": ?>
                            <div class="sat">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "01": ?>
                            <div class="sund">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "02": ?>
                            <div class="sund">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "03": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "04": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "05": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "06": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "07": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "08": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "09": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "10": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "11": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "12": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "13": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "14": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "21": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "22": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "23": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "24": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; case "25": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][0]['week']; ?></h3>
                                <p><?php echo $data['future'][0]['temperature']; ?></p>
                                <p><?php echo $data['future'][0]['weather']; ?></p>
                            </div>
                            <?php break; default: ?>默认情况
                            <?php endswitch; ?>
                            <!-- 明天 -->
                            <?php switch($data['future'][1]['weather_id']['fa']): case "00": ?>
                            <div class="sat">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "01": ?>
                            <div class="sund">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "02": ?>
                            <div class="sund">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "03": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "04": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "05": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "06": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "07": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "08": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "09": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "10": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "11": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "12": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "13": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "14": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "21": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "22": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "23": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "24": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; case "25": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][1]['week']; ?></h3>
                                <p><?php echo $data['future'][1]['temperature']; ?></p>
                                <p><?php echo $data['future'][1]['weather']; ?></p>
                            </div>
                            <?php break; default: ?>默认情况
                            <?php endswitch; ?>
                            <!-- 后天 -->
                            <?php switch($data['future'][2]['weather_id']['fa']): case "00": ?>
                            <div class="sat">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "01": ?>
                            <div class="sund">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "02": ?>
                            <div class="sund">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "03": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "04": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "05": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "06": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "07": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "08": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "09": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "10": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "11": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "12": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "13": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "14": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "21": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "22": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "23": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "24": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; case "25": ?>
                            <div class="mon">
                                <h3><?php echo $data['future'][2]['week']; ?></h3>
                                <p><?php echo $data['future'][2]['temperature']; ?></p>
                                <p><?php echo $data['future'][2]['weather']; ?></p>
                            </div>
                            <?php break; default: ?>默认情况
                            <?php endswitch; ?>

                            <!-- <div class="sat">
                                <h3>Sat</h3>
                                <p>19°C↓  22°C↑</p>
                            </div>

                            <div class="sund">
                                <h3>Sun</h3>
                                <p>17°C↓ 20°C↑</p>
                            </div>

                            <div class="cloud">
                                <h3>Mon</h3>
                                <p>15°C↓ 18°C↑</p>
                            </div> -->

                            <div class="clear"></div>

                        </div>

                    </div>

                    <div class="clear"></div>

                </div>
                <!-- end 天气 -->
                <?php else: endif ?>


            </div>


<!-- basic scripts -->

<!--[if !IE]> -->

<script src="/static/admin/js/jquery-2.0.3.min.js"></script>

<script src="/static/admin/js/toastr.js"></script>

<!-- <![endif]-->

<!--[if IE]>
<script src="/static/admin/js/jquery-1.10.2/jquery.min.js"></script>
<![endif]-->

<!--[if !IE]> -->

<script type="text/javascript">
    window.jQuery || document.write("<script src='/static/admin/js/jquery-2.0.3.min.js'>" + "<" + "script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript">
    window.jQuery || document.write("<script src='/static/admin/js/jquery-1.10.2.min.js'>" + "<" + "script>");
</script>
<![endif]-->

<script type="text/javascript">
    if ("ontouchend" in document) document.write("<script src='/static/admin/js/jquery.mobile.custom.min.js'>" + "<" + "script>");
</script>
<!-- <script src="/static/admin/js/bootstrap.min.js"></script> -->
<script src="/static/admin/js/typeahead-bs2.min.js"></script>

<!-- page specific plugin scripts -->

<!--[if lte IE 8]>
<script src="/static/admin/js/excanvas.min.js"></script>
<![endif]-->

            <script>
                var put=document.getElementsByTagName('input');
                var re=/[^\w\u4e00-\u9fa5]/g;
                for (var i = 0; i < put.length; i++) {
                    put[i].onkeyup=function(){

                        if(re.test(this.value)){
                            alert('请勿输入非法字符');
                            this.value=this.value.replace(/[^\w\u4e00-\u9fa5]/g,"");
                        }
                    }
                }
            </script>


<script src="/static/admin/js/bootstrap.min.js"></script>
<script src="/static/admin/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="/static/admin/js/jquery.ui.touch-punch.min.js"></script>
<script src="/static/admin/js/jquery.slimscroll.min.js"></script>
<script src="/static/admin/js/jquery.easy-pie-chart.min.js"></script>
<script src="/static/admin/js/jquery.sparkline.min.js"></script>
<script src="/static/admin/js/flot/jquery.flot.min.js"></script>
<script src="/static/admin/js/flot/jquery.flot.pie.min.js"></script>
<script src="/static/admin/js/flot/jquery.flot.resize.min.js"></script>

<!-- ace scripts -->

<script src="/static/admin/js/ace-elements.min.js"></script>
<script src="/static/admin/js/ace.min.js"></script>

<!-- inline scripts related to this page -->

<script type="text/javascript">
    jQuery(function ($) {
        $('.easy-pie-chart.percentage').each(function () {
            var $box = $(this).closest('.infobox');
            var barColor = $(this).data('color') || (!$box.hasClass('infobox-dark') ? $box.css('color') : 'rgba(255,255,255,0.95)');
            var trackColor = barColor == 'rgba(255,255,255,0.95)' ? 'rgba(255,255,255,0.25)' : '#E2E2E2';
            var size = parseInt($(this).data('size')) || 50;
            $(this).easyPieChart({
                barColor: barColor,
                trackColor: trackColor,
                scaleColor: false,
                lineCap: 'butt',
                lineWidth: parseInt(size / 10),
                animate: /msie\s*(8|7|6)/.test(navigator.userAgent.toLowerCase()) ? false : 1000,
                size: size
            });
        })

        $('.sparkline').each(function () {
            var $box = $(this).closest('.infobox');
            var barColor = !$box.hasClass('infobox-dark') ? $box.css('color') : '#FFF';
            $(this).sparkline('html', {
                tagValuesAttribute: 'data-values',
                type: 'bar',
                barColor: barColor,
                chartRangeMin: $(this).data('min') || 0
            });
        });


        var placeholder = $('#piechart-placeholder').css({'width': '90%', 'min-height': '150px'});
        var data = [
            {label: "social networks", data: 38.7, color: "#68BC31"},
            {label: "search engines", data: 24.5, color: "#2091CF"},
            {label: "ad campaigns", data: 8.2, color: "#AF4E96"},
            {label: "direct traffic", data: 18.6, color: "#DA5430"},
            {label: "other", data: 10, color: "#FEE074"}
        ]

        function drawPieChart(placeholder, data, position) {
            $.plot(placeholder, data, {
                series: {
                    pie: {
                        show: true,
                        tilt: 0.8,
                        highlight: {
                            opacity: 0.25
                        },
                        stroke: {
                            color: '#fff',
                            width: 2
                        },
                        startAngle: 2
                    }
                },
                legend: {
                    show: true,
                    position: position || "ne",
                    labelBoxBorderColor: null,
                    margin: [-30, 15]
                }
                ,
                grid: {
                    hoverable: true,
                    clickable: true
                }
            })
        }

        drawPieChart(placeholder, data);

        /**
         we saved the drawing function and the data to redraw with different position later when switching to RTL mode dynamically
         so that's not needed actually.
         */
        placeholder.data('chart', data);
        placeholder.data('draw', drawPieChart);


        var $tooltip = $("<div class='tooltip top in'><div class='tooltip-inner'></div></div>").hide().appendTo('body');
        var previousPoint = null;

        placeholder.on('plothover', function (event, pos, item) {
            if (item) {
                if (previousPoint != item.seriesIndex) {
                    previousPoint = item.seriesIndex;
                    var tip = item.series['label'] + " : " + item.series['percent'] + '%';
                    $tooltip.show().children(0).text(tip);
                }
                $tooltip.css({top: pos.pageY + 10, left: pos.pageX + 10});
            } else {
                $tooltip.hide();
                previousPoint = null;
            }

        });


        var d1 = [];
        for (var i = 0; i < Math.PI * 2; i += 0.5) {
            d1.push([i, Math.sin(i)]);
        }

        var d2 = [];
        for (var i = 0; i < Math.PI * 2; i += 0.5) {
            d2.push([i, Math.cos(i)]);
        }

        var d3 = [];
        for (var i = 0; i < Math.PI * 2; i += 0.2) {
            d3.push([i, Math.tan(i)]);
        }


        var sales_charts = $('#sales-charts').css({'width': '100%', 'height': '220px'});
        $.plot("#sales-charts", [
            {label: "Domains", data: d1},
            {label: "Hosting", data: d2},
            {label: "Services", data: d3}
        ], {
            hoverable: true,
            shadowSize: 0,
            series: {
                lines: {show: true},
                points: {show: true}
            },
            xaxis: {
                tickLength: 0
            },
            yaxis: {
                ticks: 10,
                min: -2,
                max: 2,
                tickDecimals: 3
            },
            grid: {
                backgroundColor: {colors: ["#fff", "#fff"]},
                borderWidth: 1,
                borderColor: '#555'
            }
        });


        $('#recent-box [data-rel="tooltip"]').tooltip({placement: tooltip_placement});
        function tooltip_placement(context, source) {
            var $source = $(source);
            var $parent = $source.closest('.tab-content')
            var off1 = $parent.offset();
            var w1 = $parent.width();

            var off2 = $source.offset();
            var w2 = $source.width();

            if (parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2)) return 'right';
            return 'left';
        }


        $('.dialogs,.comments').slimScroll({
            height: '300px'
        });


        //Android's default browser somehow is confused when tapping on label which will lead to dragging the task
        //so disable dragging when clicking on label
        var agent = navigator.userAgent.toLowerCase();
        if ("ontouchstart" in document && /applewebkit/.test(agent) && /android/.test(agent))
            $('#tasks').on('touchstart', function (e) {
                var li = $(e.target).closest('#tasks li');
                if (li.length == 0)return;
                var label = li.find('label.inline').get(0);
                if (label == e.target || $.contains(label, e.target)) e.stopImmediatePropagation();
            });

        $('#tasks').sortable({
                opacity: 0.8,
                revert: true,
                forceHelperSize: true,
                placeholder: 'draggable-placeholder',
                forcePlaceholderSize: true,
                tolerance: 'pointer',
                stop: function (event, ui) {
                    //just for Chrome!!!! so that dropdowns on items don't appear below other items after being moved
                    $(ui.item).css('z-index', 'auto');
                }
            }
        );


        $('#tasks').disableSelection();
        $('#tasks input:checkbox').removeAttr('checked').on('click', function () {
            if (this.checked) $(this).closest('li').addClass('selected');
            else $(this).closest('li').removeClass('selected');
        });


    })

    
</script>
<div style="display:none">
    <script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script>
</div>
</body>
</html>

